package com.heima.article.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.article.dto.ArticleDto;
import com.heima.model.article.dto.ArticleHomeDto;
import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.List;

public interface ApArticleService extends IService<ApArticle> {

    /**
     * 加载文章列表
     * @param dto
     * @param type 1. 加载更多  2. 加载更新
     * @return
     */
    ResponseResult loadArticleList(ArticleHomeDto dto,Short type);

    /**
     * 保存app端文章
     * @param dto
     * @return
     */
    ResponseResult saveArticle(ArticleDto dto) throws InvocationTargetException, IllegalAccessException, IOException;


}
